package com.flow.dao.impl;

import java.util.ArrayList;
import java.util.List;

import com.flow.dao.INumberIndexDao;
import com.flow.model.NumberIndex;
import com.flow.model.PagerModel;

/**
 * 编号Dao
 * @author wang
 * @2016-1-29
 * NumberIndexDao.java
 * @param <T>
 *
 */
public class NumberIndexDao<T> extends BaseDao<T> implements INumberIndexDao<T> {

	@Override
	public boolean insertNumberIndex(NumberIndex numberIndex) {
		
		try {
			
			insert(numberIndex);
			return true;
			
		} catch (Exception e) {
			
			e.printStackTrace();
			
		}
		return false;
	}

	@Override
	public boolean updateNumberIndex(NumberIndex numberIndex) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean deleteNumberIndex(NumberIndex numberIndex) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public NumberIndex findNumberIndexByHql(String hql) {

		return findNumberIndexByHql(hql, null);
		
	}

	@Override
	public NumberIndex findNumberIndexByHql(String hql, Object param) {

		List<Object> params = new ArrayList<Object>();
		params.add(param);
		return findNumberIndexByHql(hql, params);
		
	}

	@Override
	public NumberIndex findNumberIndexByHql(String hql, List<Object> params) {

		return (NumberIndex)findByHql(hql, params);
		
	}

	@Override
	public int universalMethodNumberIndex(String hql) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int universalMethodNumberIndex(String hql, Object param) {
		// TODO Auto-generated method stube  
		return 0;
	}

	@Override
	public int universalMethodNumberIndex(String hql, List<Object> params) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<T> findNumberIndexAllByHql(String hql) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<T> findNumberIndexAllByHql(String hql, Object param) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<T> findNumberIndexAllByHql(String hql, List<Object> params) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public PagerModel findNumberIndexPagerModeled(PagerModel pager, String hql) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public PagerModel findNumberIndexPagerModeled(PagerModel pager, String hql,
			Object param) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public PagerModel findNumberIndexPagerModeled(PagerModel pager, String hql,
			List<Object> params) {
		// TODO Auto-generated method stub
		return null;
	}

}
